home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / remote / ra_101.zip / STRUCT.100 < prev    next >
Text File  |  1991-02-15  |  15KB  |  448 lines

  1. { RemoteAccess 1.00 file structures, may be used freely by third party software
  2.   developers. This document is (C) Copyright 1991 Continental Software.        }
  3.  
  4.  
  5. type
  6.   MsgType        = (LocalMail, NetMail, EchoMail);
  7.   OrphanType     = (Ignore, Create, Kill);
  8.   FlagType       = array[1..4] of Byte;
  9.   Time           = String[5];
  10.   Date           = String[8];
  11.   LongDate       = String[9];
  12.  
  13.   NetAddress     = record
  14.                      Zone,
  15.                      Net,
  16.                      Node,
  17.                      Point          : Word;
  18.                    end;
  19.  
  20.   MSGINFOrecord  = record
  21.                      LowMsg,
  22.                      HighMsg,
  23.                      TotalMsgs      : Word;
  24.                      TotalOnBoard   : array[1..200] of Word;
  25.                    end;
  26.  
  27.   MSGIDXrecord   = record
  28.                      MsgNum         : Integer;
  29.                      Board          : Byte;
  30.                    end;
  31.  
  32.   MSGTOIDXrecord = String[35];
  33.  
  34.   MSGHDRrecord   = record
  35.                      MsgNum         : Integer;
  36.                      PrevReply,
  37.                      NextReply,
  38.                      TimesRead      : Word;
  39.                      StartBlock     : Word;
  40.                      NumBlocks,
  41.                      DestNet,
  42.                      DestNode,
  43.                      OrigNet,
  44.                      OrigNode       : Word;
  45.                      DestZone,
  46.                      OrigZone       : Byte;
  47.                      Cost           : Word;
  48.                      MsgAttr,
  49.                      NetAttr,
  50.                      Board          : Byte;
  51.                      PostTime       : Time;
  52.                      PostDate       : Date;
  53.                      WhoTo,
  54.                      WhoFrom        : MSGTOIDXrecord;
  55.                      Subject        : String[72];
  56.                    end;
  57.  
  58.   MSGTXTrecord   = String[255];
  59.  
  60.   USERONrecord   = record
  61.                      Name           : MSGTOIDXrecord;
  62.                      Line           : Byte;
  63.                      Baud           : Word;
  64.                      City           : String[25];
  65.                      DoNotDisturb   : Boolean;
  66.                      Status         : Byte;
  67.                    end;
  68.  
  69.                    { Status byte - 0 : Browsing (in a menu)
  70.                                    1 : Uploading/downloading
  71.                                    2 : Reading/posting messages
  72.                                    3 : In a door/external utility
  73.                                    4 : Chatting with sysop
  74.                                    5 : Answering questionnaire }
  75.  
  76.   LASTCALLrecord = record
  77.                      Line           : Byte;
  78.                      Name           : MSGTOIDXrecord;
  79.                      City           : String[25];
  80.                      Baud           : Word;
  81.                      Times          : LongInt;
  82.                      LogOn          : String[5];
  83.                      LogOff         : String[5];
  84.                    end;
  85.  
  86.   LASTREADrecord = array[1..200] of Word;
  87.  
  88.   COMBINEDrecord = array[1..25] of Byte;
  89.  
  90.   USERSXIrecord  = record
  91.                      Handle         : String[35];
  92.                      Comment        : String[80];
  93.                      FirstDate      : Date;
  94.                      CombinedInfo   : COMBINEDrecord;
  95.                      BirthDate      : Date;
  96.                      SubDate        : Date;
  97.                      ScreenWidth    : Byte;
  98.                      ExtraSpace     : Array[1..83] of Byte;
  99.                    end;
  100.  
  101.   USERSrecord    = record
  102.                      Name           : MSGTOIDXrecord;
  103.                      Location       : String[25];
  104.                      Password       : String[15];
  105.                      DataPhone,
  106.                      VoicePhone     : String[12];
  107.                      LastTime       : Time;
  108.                      LastDate       : Date;
  109.                      Attribute      : Byte;
  110.  
  111.                       { Bit 0 : Deleted
  112.                             1 : Clear screen
  113.                             2 : More prompt
  114.                             3 : ANSI
  115.                             4 : No-kill
  116.                             5 : Xfer priority
  117.                             6 : Full screen msg editor
  118.                             7 : Quiet mode }
  119.  
  120.                      Flags          : FlagType;
  121.                      Credit,
  122.                      Pending        : Word;
  123.                      MsgsPosted,
  124.                      LastRead,
  125.                      Security,
  126.                      NoCalls,
  127.                      Uploads,
  128.                      Downloads,
  129.                      UploadsK,
  130.                      DownloadsK     : Word;
  131.                      TodayK,
  132.                      Elapsed        : Integer;
  133.                      ScreenLength   : Word;
  134.                      LastPwdChange,
  135.                      Attribute2,
  136.  
  137.                       { Bit 0 : Hot-keys
  138.                             1 : AVT/0
  139.                             2 : Full screen message viewer
  140.                             3 : Hidden from userlist }
  141.  
  142.                      Group          : Byte;
  143.                      XIrecord       : Word;
  144.                      ExtraSpace     : array[1..3] of Byte;
  145.                    end;
  146.  
  147.   SYSINFOrecord  = record
  148.                      TotalCalls     : LongInt;
  149.                      LastCaller     : MSGTOIDXrecord;
  150.                      ExtraSpace     : array[1..128] of Byte;
  151.                    end;
  152.  
  153.   TIMELOGrecord  = record
  154.                      StartDate      : Date;
  155.                      BusyPerHour    : array[0..23] of Word;
  156.                      BusyPerDay     : array[0..6] of Word;
  157.                    end;
  158.  
  159.   MNUrecord      = record
  160.                      Typ            : Byte;
  161.                      Security       : Word;
  162.                      Flags          : FlagType;
  163.                      Display        : String[75];
  164.                      HotKey         : Char;
  165.                      MiscData       : String[80];
  166.                      Foreground,
  167.                      Background     : Byte;
  168.                    end;
  169.  
  170.   AskType        = (Yes, No, Ask);
  171.  
  172.   EVENTrecord    = record
  173.                      Status         : Byte; { 0=Deleted 1=Enabled 2=Disabled }
  174.                      StartTime      : Time;
  175.                      ErrorLevel     : Byte;
  176.                      Days           : Byte;
  177.                      Forced         : Boolean;
  178.                      LastTimeRun    : Date;
  179.                    end;
  180.  
  181.   EVENTrecordArray = array[1..20] of EVENTrecord;
  182.  
  183.   MsgKindsType   = (Both, Private, Public, ROnly);
  184.  
  185.   MESSAGErecord  = record
  186.                      Name           : String[40];
  187.                      Typ            : MsgType;
  188.                      MsgKinds       : MsgKindsType;
  189.                      Attribute      : Byte;
  190.  
  191.                       { Bit 0 : Enable EchoInfo
  192.                             1 : Combined access
  193.                             2 : File attaches
  194.                             3 : Allow aliases
  195.                             5 : Force handle     }
  196.  
  197.                      DaysKill,    { Kill older than 'x' days }
  198.                      RecvKill       : Byte; { Kill recv msgs, recv for more than 'x' days }
  199.                      CountKill      : Word;
  200.  
  201.                      ReadSecurity   : Word;
  202.                      ReadFlags      : FlagType;
  203.  
  204.                      WriteSecurity  : Word;
  205.                      WriteFlags     : FlagType;
  206.  
  207.                      SysopSecurity  : Word;
  208.                      SysopFlags     : FlagType;
  209.  
  210.                      OriginLine     : String[60];
  211.                      AkaAddress     : Byte;
  212.                    end;
  213.  
  214.   FILESrecord    = record
  215.                      Name           : String[30];
  216.                      Attrib         : Byte;
  217.                      FilePath       : String[40];
  218.                      FreeSpace      : Array[1..41] of Byte;
  219.                      Security       : Word;
  220.                      Flags          : FlagType;
  221.                      PrivateSecurity: Word;
  222.                      PrivateFlags   : FlagType;
  223.                    end;
  224.  
  225.   CONFIGrecord = Record
  226.     VersionID           : Word;
  227.     CommPort            : Byte;
  228.     Baud                : LongInt;
  229.     InitTries           : Byte;
  230.     InitStr,
  231.     BusyStr             : String[70];
  232.     InitResp,
  233.     BusyResp,
  234.     Connect300,
  235.     Connect1200,
  236.     Connect2400,
  237.     Connect4800,
  238.     Connect9600,
  239.     Connect19k,
  240.     Connect38k          : String[40];
  241.     AnswerPhone         : Boolean;
  242.     Ring,
  243.     AnswerStr           : String[20];
  244.     FlushBuffer         : Boolean;
  245.     ModemDelay          : Integer;
  246.  
  247.     MinimumBaud,
  248.     GraphicsBaud,
  249.     TransferBaud        : Integer;
  250.     SlowBaudTimeStart,
  251.     SlowBaudTimeEnd,
  252.     DownloadTimeStart,
  253.     DownloadTimeEnd,
  254.     PagingTimeStart,
  255.     PagingTimeEnd       : Time;
  256.     LoadingMsg,
  257.     ListPrompt          : String[70];
  258.     PwdExpiry           : Word;
  259.  
  260.     MenuPath,
  261.     TextPath,
  262.     AttachPath,
  263.     NodelistPath,
  264.     MsgBasePath,
  265.     SysPath,
  266.     ExternalEdCmd       : String[60];
  267.  
  268.     Address             : Array[0..9] of NetAddress;
  269.     SystemName          : String[30];
  270.  
  271.     NewSecurity         : Word;
  272.     NewCredit           : Word;
  273.     NewFlags            : FlagType;
  274.  
  275.     OriginLine          : String[60];
  276.     QuoteString         : String[15];
  277.     Sysop               : String[35];
  278.     LogFileName         : String[60];
  279.     FastLogon,
  280.     AllowSysRem,
  281.     MonoMode,
  282.     StrictPwdChecking,
  283.     DirectWrite,
  284.     SnowCheck           : Boolean;
  285.     CreditFactor        : Integer;
  286.  
  287.     UserTimeOut,
  288.     LogonTime,
  289.     PasswordTries,
  290.     MaxPage,
  291.     PageLength          : Word;
  292.     CheckForMultiLogon,
  293.     ExcludeSysopFromList,
  294.     OneWordNames        : Boolean;
  295.     CheckMail           : AskType;
  296.     AskVoicePhone,
  297.     AskDataPhone,
  298.     DoFullMailCheck,
  299.     AllowFileShells,
  300.     FixUploadDates,
  301.     ShowFileDates       : Boolean;
  302.     ANSI,                       { ANSI: Yes, no, or ask new users     }
  303.     ClearScreen,                { Clear:        "                     }
  304.     MorePrompt          : AskType;    { More:         "                     }
  305.     UploadMsgs          : Boolean;
  306.     KillSent            : AskType;    { Kill/Sent     "                     }
  307.  
  308.     CrashAskSec         : Word;       { Min sec# to ask 'Crash Mail ?'      }
  309.     CrashAskFlags       : FlagType;
  310.     CrashSec            : Word;       { Min sec# to always send crash mail. }
  311.     CrashFlags          : FlagType;
  312.     FAttachSec          : Word;       {        "    ask 'File Attach ?'     }
  313.     FAttachFlags        : FlagType;
  314.  
  315.     NormFore,
  316.     NormBack,
  317.     StatFore,
  318.     StatBack,
  319.     HiBack,
  320.     HiFore,
  321.     WindFore,
  322.     WindBack,
  323.     ExitLocal,
  324.     Exit300,
  325.     Exit1200,
  326.     Exit2400,
  327.     Exit4800,
  328.     Exit9600,
  329.     Exit19k,
  330.     Exit38k             : Byte;
  331.  
  332.     MultiLine           : Boolean;
  333.     MinPwdLen           : Byte;
  334.     MinUpSpace          : Word;
  335.     HotKeys             : AskType;
  336.     BorderFore,
  337.     BorderBack,
  338.     BarFore,
  339.     BarBack,
  340.     LogStyle,
  341.     MultiTasker,
  342.     PwdBoard            : Byte;
  343.     BufferSize          : Word;
  344.     FKeys               : Array[1..10] of String[60];
  345.  
  346.     WhyPage             : Boolean;
  347.     LeaveMsg            : Byte;
  348.     ShowMissingFiles    : Boolean;
  349.     MissingString       : String[10];
  350.     AllowNetmailReplies : Boolean;
  351.     LogonPrompt         : String[40];
  352.     CheckNewFiles       : AskType;
  353.     ReplyHeader         : String[60];
  354.     BlankSecs           : byte;
  355.     ProtocolAttrib      : Array[1..6] of Byte;
  356.     ErrorFreeString     : String[15];
  357.     DefaultCombined     : COMBINEDrecord;
  358.     RenumThreshold      : Word;
  359.     LeftBracket,
  360.     RightBracket        : Char;
  361.     AskForHandle        : Boolean;
  362.     AskForBirthDate     : Boolean;
  363.  
  364.     Unused              : Word;
  365.  
  366.     ConfirmMsgDeletes   : Boolean;
  367.     LocationPrompt      : String[60];
  368.     PagePrompt          : String[60];
  369.     UserfilePrompt      : String[40];
  370.     NewUserGroup        : Byte;
  371.     AVATAR              : AskType;
  372.     BadPwdArea          : Byte;
  373.     Location            : String[40];
  374.     DoAfterAction       : Byte; {0 = wait for CR, > 0 = wait for x seconds}
  375.     CRprompt            : String[40];
  376.     CRfore,
  377.     CRback              : Byte;
  378.     ContinuePrompt      : String[40];
  379.     SendBreak           : Boolean;
  380.     ListPath            : String[60];
  381.     FullMsgView         : AskType;
  382.     EMSI_Enable,
  383.     EMSI_NewUser        : Boolean;
  384.  
  385.     FutureExpansion : Array[1..492] of Byte;
  386.   end;
  387.  
  388.   EXITINFOrecord = record
  389.                      Baud             : Word;
  390.                      SysInfo          : SYSINFOrecord;
  391.                      TimeLogInfo      : TIMELOGrecord;
  392.                      UserInfo         : USERSrecord;
  393.                      EventInfo        : EVENTrecord;
  394.                      NetMailEntered,
  395.                      EchoMailEntered  : Boolean;
  396.                      LoginTime        : Time;
  397.                      LoginDate        : Date;
  398.                      TimeLimit        : Word;
  399.                      LoginSec,
  400.                      Credit           : LongInt;
  401.                      UserRecord       : Integer;
  402.                      ReadThru,
  403.                      NumberPages,
  404.                      DownloadLimit    : Word;
  405.                      TimeOfCreation   : Time;
  406.                      LogonPassword    : String[15];
  407.                      WantChat         : Boolean;
  408.  
  409.                      DeductedTime     : Integer;
  410.                      MenuStack        : Array[1..50] of String[8];
  411.                      MenuStackPointer : Byte;
  412.                      UserXIinfo       : USERSXIrecord;
  413.                      ErrorFreeConnect,
  414.                      SysopNext        : Boolean;
  415.  
  416.                      EMSI_Session     : Boolean;        { These fields hold  }
  417.                      EMSI_Crtdef,                       { data related to an }
  418.                      EMSI_Protocols,                    { EMSI session       }
  419.                      EMSI_Capabilities,
  420.                      EMSI_Requests,
  421.                      EMSI_Software    : String[40];
  422.                      Hold_Attr1,
  423.                      Hold_Attr2,
  424.                      Hold_Len         : Byte;
  425.  
  426.                      ExtraSpace       : Array[1..100] of Byte;
  427.                  end;
  428.  
  429.   PROTOCOLrecord = record
  430.                      Name           : String[15];
  431.                      ActiveKey      : Char;
  432.                      OpusTypeCtlFile,
  433.                      BatchAvailable : Boolean;
  434.                      Attribute      : Byte; { 0=Disabled, 1=Enabled }
  435.                      LogFileName,
  436.                      CtlFileName,
  437.                      DnCmdString,
  438.                      DnCtlString,
  439.                      UpCmdString,
  440.                      UpCtlString    : String[80];
  441.                      UpLogKeyword,
  442.                      DnLogKeyword   : String[20];
  443.                      XferDescWordNum,
  444.                      XferNameWordNum : Byte;
  445.                    end;
  446.  
  447.  
  448.